//设置共享数据
export default {
  setConsName (state, consName) {
    state.consName = consName
  },
  setField (state, field) {
    state.field = field
  },
  setErrorCode (state, errorCode) {
    state.errorCode = errorCode
  },
  setData (state, data) {
    state[state.field] = data
  }
}